package com.xmtlxx.system.mapper;

import com.xmtlxx.common.annotation.DataColumn;
import com.xmtlxx.common.annotation.DataPermission;
import com.xmtlxx.common.core.domain.entity.SysOperator;
import com.xmtlxx.common.core.mapper.BaseMapperPlus;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmtlxx.system.domain.bo.SysOperatorBo;
import com.xmtlxx.system.domain.vo.SysOperatorVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 节点经办人Mapper接口
 *
 * @author xmtlxx
 * @date 2022-04-24
 */
public interface SysOperatorMapper extends BaseMapperPlus<SysOperatorMapper, SysOperator, SysOperatorVo> {
    /**
     * 根据条件分页查询节点经办人
     *
     * @param sysOperatorBo 节点经办人
     * @return Page SysOperator
     */
    @DataPermission({
        @DataColumn(key = "tenantName", value = "s.create_by"),
        @DataColumn(key = "deptName", value = "s.create_by"),
        @DataColumn(key = "userName", value = "s.create_by")
    })
    Page<SysOperator> selectPageSysOperatorList(@Param("page") Page<SysOperator> page,@Param("sysOperator") SysOperatorBo sysOperator);

    /**
     * 查询节点经办人列表
     *
     * @param sysOperatorBo 节点经办人
     * @return 节点经办人集合
     */
    List<SysOperator> selectSysOperatorList(@Param("sysOperator") SysOperatorBo sysOperator);

}
